$OpenBSD: patch-src_sattrack_sattrack_c,v 1.1 2007/12/18 09:08:24 ajacoutot Exp $
--- src/sattrack/sattrack.c.orig	Tue Jan 14 06:06:10 1997
+++ src/sattrack/sattrack.c	Tue Dec 18 09:53:05 2007
@@ -2081,12 +2081,12 @@ int entryFlag;
         memcpy((char *)&modified,(char *)&original,sizeof(struct termios));
 #endif
 
-#ifdef FREEBSD
+#if defined(FREEBSD) || defined(__OpenBSD__)
         ioctl(STDIN_FILENO,TIOCGETA,&original);
         memcpy((char *)&modified,(char *)&original,sizeof(struct termios));
 #endif
 
-#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD))
+#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD)) && !defined(__OpenBSD__)
         ioctl(STDIN_FILENO,TCGETS,&original);
         memcpy((char *)&modified,(char *)&original,sizeof(struct termios));
 #endif
@@ -2114,11 +2114,11 @@ int entryFlag;
      ioctl(STDIN_FILENO,XCSETA,&modified);
 #endif
 
-#ifdef FREEBSD
+#if defined(FREEBSD) || defined(__OpenBSD__)
     ioctl(STDIN_FILENO,TIOCSETA,&modified);
 #endif
 
-#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD))
+#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD)) && !defined(__OpenBSD__)
     ioctl(STDIN_FILENO,TCSETS,&modified);
 #endif
 
@@ -2138,11 +2138,11 @@ int entryFlag;
      ioctl(STDIN_FILENO,XCSETA,&original);
 #endif
 
-#ifdef FREEBSD
+#if defined(FREEBSD) || defined(__OpenBSD__)
     ioctl(STDIN_FILENO,TIOCSETA,&original);
 #endif
 
-#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD))
+#if (!defined(HPUX) && !defined(SCOV5) && !defined(FREEBSD)) && !defined(__OpenBSD__)
     ioctl(STDIN_FILENO,TCSETS,&original);
 #endif
 
